﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace jianvgroup.com.Models.AccountViewModels
{
    public class LoginViewModel
    {
        /// <summary>
        /// 登陆用户名
        /// </summary>
        [Required(AllowEmptyStrings = false, ErrorMessage = "用户或密码不能为空")]

        public string UserName { get; set; }

        /// <summary>
        /// 登陆密码
        /// </summary>
        [Required(AllowEmptyStrings = false, ErrorMessage = "用户或密码不能为空")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        /// <summary>
        /// 是否记住密码
        /// </summary>
        [Display(Name = "是否记住密码?")]
        public bool RememberMe { get; set; }
    }
}
